﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Compiler
{
    public class SimpleParseTableState
    {
        public readonly int index;
        public SimpleParseTableState(int i)
        {
            index = i;
        }

        public override string ToString()
        {
            return index.ToString();
        }

        public class SimpleParseTableStateEqualityComparer : IEqualityComparer<SimpleParseTableState>
        {
            public bool Equals(SimpleParseTableState x, SimpleParseTableState y)
            {
                return x.index == y.index;
            }

            public int GetHashCode(SimpleParseTableState obj)
            {
                return obj.index.GetHashCode();
            }
        }
    }
}
